import request from '../utils/request';
//公共业务接口文档
const api = {
  //分页获取物料条码列表
  GetPageWarehouseBarcode(data?: any) {
    return request({
      url: '/api/WarehouseBarcode/GetPageWarehouseBarcode',
      method: 'post',
      data,
    });
  },
  //根据条码唯一Code，删除条码
  DeleteWarehouseBarcode(data?: any) {
    return request({
      url: '/api/WarehouseBarcode/DeleteWarehouseBarcode',
      method: 'post',
      data,
    });
  },
  //获取条码详情
  GetSingleWarehouseBarcode(data?: any) {
    return request({
      url: '/api/WarehouseBarcode/GetSingleWarehouseBarcode',
      method: 'post',
      data,
    });
  },
  //新增物料条码
  AddWarehouseBarcodes(data?: any) {
    return request({
      url: '/api/WarehouseBarcode/AddWarehouseBarcodes',
      method: 'post',
      data,
    });
  },
  //编辑条码
  UpdateWarehouseBarcode(data?: any) {
    return request({
      url: '/api/WarehouseBarcode/UpdateWarehouseBarcode',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
